package com.dd.service;

import com.dd.model.Customer;

import java.util.List;

/**
 * 客户服务接口
 */
public interface CustomerService {
    
    /**
     * 查询所有客户
     */
    List<Customer> findAllCustomers();
    
    /**
     * 根据ID查询客户
     */
    Customer getCustomerById(Integer customerId);
    
    /**
     * 根据邮箱查询客户
     */
    Customer getCustomerByEmail(String email);
    
    /**
     * 根据名称模糊查询客户
     */
    List<Customer> findCustomersByName(String name);
    
    /**
     * 添加客户
     */
    boolean addCustomer(Customer customer);
    
    /**
     * 更新客户
     */
    boolean updateCustomer(Customer customer);
    
    /**
     * 删除客户
     */
    boolean deleteCustomer(Integer customerId);
} 